namespace DotNetNuke.Security.Membership
{
    using System;
    using System.Runtime.CompilerServices;
    using System.Web;
    using System.Web.Security;

    public class DNNSQLMembershipProvider : SqlMembershipProvider
    {
        public override string ApplicationName
        {
            get
            {
                if (Convert.ToString((HttpContext.Current.Items["ApplicationName"])) == "")
                {
                    return "/";
                }
                return Convert.ToString((HttpContext.Current.Items["ApplicationName"]));
            }
            set
            {
                HttpContext.Current.Items["ApplicationName"] = value;
            }
        }
    }
}

